//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "RLCnsCustos.h"
#include "DMCustos.h"

//---------------------------------------------------------------------------
#pragma package( smart_init )
#pragma link "PHRBand"
#pragma link "PHReport"
#pragma link "PHRLabel"
#pragma link "PHDS"
#pragma resource "*.dfm"
TRLCnsCustos1*  RLCnsCustos1;

//---------------------------------------------------------------------------
__fastcall TRLCnsCustos1::TRLCnsCustos1( TComponent*  Owner ) : TForm( Owner )
{
}

//---------------------------------------------------------------------------

void __fastcall TRLCnsCustos1::PHReport1BeforeDetail(PHReport *Sender)
{
  PHRBand2->Frame->DrawTop = false;
  PHRBand2->Frame->DrawBottom = false;
  if(DS1->GT(PESOST_NIVEL)=="1")
   if(DS1->RangeEnd!="1")
    {
     PHRBand2->Frame->DrawTop = true;
     PHRBand2->Frame->DrawBottom = true;     
    }
}
//---------------------------------------------------------------------------

